<?php
/** Zend_Controller_Action */ 
require_once ROOT_PATH . '/library/Soooner/Controller/Action.php';
require_once ROOT_PATH . '/library/Common/Classes/Upload.php';
class UpfileController extends Soooner_Controller_Action
{
    public function init()
    {
        /* Initialize action controller here */
    	$this->initDzTemplate();
    }
    /**
    * 获取配置信息列表
    * @return unknown_type
    */
    public function indexAction()
    {
    	$request = $this->getRequest();
    	if ($request->isPost())
    	{
    		$upload = new Upload();
	    	$files = $upload->uploadFile('upfile', '/tmp', 'aaa');
	    	var_dump($files);
    	}
		include $this->_dzTemplate->getFile( 'tools/upload.html' );
    }
}
